/**
 * 
 */
package net.phoenix.repository.dao;


/**
 * 每个属性都对应一张单独的表。
 * 表名规则为：类型缩写+属性Name.
 * 类型缩写：S(tring) L(ong) F(loat) B(oolean) B(lob) T(ext) R(eference) D(ate) P(ath) N(ame) 
 * 
 * 
 * @author lixf
 * 
 * @version 2.0
 * 
 */
public class QName {
	
	//private static final String[] PREFIX = { "U", "S", "I", "L", "F", "D", "B", "N", "P", "R", "W","U","M"};


	public static String encode(int type, String name) {		
		//return PREFIX[type] + "_" + name.replace('-', '_');
		return "P_"+ name.replace('-', '_').replace(':', '_');
	}

}
